package support;

/*********************************************************
 * degree
 * Contains information about a degree for one session
 ********************************************************/
public class degree{
	
	public degree(int num){
		degreeCount = num;
	}
	
	public void setAttribute(String key, String value){
		if(key.equals("location"))
			location = value;
		else if(key.equals("university"))
			university = value;
		else if(key.equals("major"))
			major = value;
		else if(key.equals("month"))
			month = value;
		else if(key.equals("year"))
			year = value;
		else if(key.equals("gpa"))
			gpa = value;
		else if(key.equals("title"))
			title = value;
		else if(key.equals("transcript"))
			transcript = value;
		
	}
	
	public String getAttribute(String key){
		if(key.equals("location"))
			return location;
		else if(key.equals("university"))
			return university;
		else if(key.equals("major"))
			return major;
		else if(key.equals("month"))
			return month;
		else if(key.equals("year"))
			return year;
		else if(key.equals("gpa"))
			return gpa;
		else if(key.equals("title"))
			return title;
		else if(key.equals("transcript"))
			return transcript;
		
		return null;
	}
	
	private int degreeCount;
	private String location;
	private String university;
	private String major;
	private String month;
	private String year;
	private String gpa;
	private String title;
	private String transcript;
	
}
